capture stop

Stops writing the packet capture to the PCAP file and moves the active file to the next available inactive PCAP file.

Syntax

capture stop

Parameters

stop
Stops packet capture.

Modes

Exec mode

Usage Guidelines

This command is available only to users with the admin role.

Only one mirror session is allowed per port.

You must configure the interface before configuring packet capture.

A maximum of 10 mirror sessions per device are allowed.

Packet capture is not allowed if maximum PCAP files are already created.

When packet-count parameter is specified, the packet capture automatically stops on the interface after the specified number of packets are captured.

The maximum number of existing PCAP files cannot exceed 25.

The start and stop commands do not clear hardware entries.

Onboard packet capture is not persistent across reboot.

Examples

The following example stops packet capture.

device# capture stop